File.open( 'imagenes.dump', 'r' ).each_line do |line|
  line.gsub!( "\n", "" )
  fields = line.split('|')
  fixture = "Imagen.new( \n"
  fixture += "  :id => #{fields[0]}, \n"
  fixture += "  :parent_id => #{fields[1]}, \n" unless fields[1] == ''
  fixture += "  :content_type => '#{fields[2]}', \n"
  fixture += "  :filename => '#{fields[3]}', \n"
  fixture += "  :thumbnail => '#{fields[4]}', \n" unless fields[4] == ''
  fixture += "  :size => '#{fields[5]}', \n"
  fixture += "  :width => '#{fields[6]}', \n"
  fixture += "  :height => '#{fields[7]}' \n"
  fixture += ").save\n"
  fixture += "\n"
  
  puts fixture
end